﻿using DongFangGuoKai.WMSPlatform.Core;
using DongFangGuoKai.WMSPlatform.Core.Repository;
using DongFangGuoKai.WMSPlatform.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.InstructApp
{
    public partial class InstructService : IInstructService
    {

        public InstructService(IRepository<TInstruct> instructRepo,IRepository<TAgvInstruct> agvInstructRepo)
        {
            InstructRepo = instructRepo;
            AgvInstructRepo = agvInstructRepo;
        }

        IRepository<TInstruct> InstructRepo { get; }
        IRepository<TAgvInstruct> AgvInstructRepo { get; }

        public async Task<TInstruct> GetInstructByBussinessGroupId(Guid bussinessGroupId)
        {
          
            return await InstructRepo.GetAsync(t => t.BusinessGroupId == bussinessGroupId);
        }
    }
}
